package com.ly.mp.dal.comm.jdbc;

import org.springframework.beans.factory.annotation.Autowired;

public class Gateway {
    @Autowired
    PagedJdbcTemplate pagedJdbcTemplate;
    static Gateway gateway;

    public PagedJdbcTemplate getPagedJdbcTemplate() {
        return this.pagedJdbcTemplate;
    }

    public static synchronized Gateway getDefault() {
        if (null == gateway) {
            gateway = new Gateway();
        }

        return gateway;
    }
}